import { CHANGE_CURRENT, GET_ALL_GOODS } from '@/store/goods/const'
import { good, State } from '@/store/goods/interface'

export default {
  [GET_ALL_GOODS] (state:State, data:any) {
    state.goods = data
    state.count = data.total
  },

  [CHANGE_CURRENT] (state:State, num:number) {
    state.limit.pagenum = num
  }
}
